package com.ruoyi.football.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Id;

/**
 * 球场对象 stadium
 * 
 * @author lyx
 * @date 2024-12-08
 */
public class Stadium extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @Id
    /** $column.columnComment */
    private Long id;

    /** 球场老板id，关联微信用户表的id */
    @Excel(name = "球场老板id，关联微信用户表的id")
    private Long userId;

    /** 球场被预定的次数 */
    @Excel(name = "球场被预定的次数")
    private Long payNum;

    /** 球场联系号码 */
    @Excel(name = "球场联系号码")
    private String phone;

    /** 球场累计收益 */
    @Excel(name = "球场累计收益")
    private BigDecimal countPrice;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 球场首图 */
    @Excel(name = "球场首图")
    private String image;

    /** 球场名字 */
    @Excel(name = "球场名字")
    private String name;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 县 */
    @Excel(name = "县")
    private String county;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 省编码 */
    @Excel(name = "省编码")
    private String provinceCode;

    /** 市编码 */
    @Excel(name = "市编码")
    private String cityCode;

    /** 县编码 */
    @Excel(name = "县编码")
    private String countyCode;

    public List<StadiumDetail> getStadiumDetailList() {
        return stadiumDetailList;
    }

    public void setStadiumDetailList(List<StadiumDetail> stadiumDetailList) {
        this.stadiumDetailList = stadiumDetailList;
    }

    /** 营业开始时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "营业开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String startTime;

    /** 营业结束时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "营业结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String endTime;

    @TableField(exist = false)
    private List<StadiumDetail> stadiumDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPayNum(Long payNum) 
    {
        this.payNum = payNum;
    }

    public Long getPayNum() 
    {
        return payNum;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCountPrice(BigDecimal countPrice) 
    {
        this.countPrice = countPrice;
    }

    public BigDecimal getCountPrice() 
    {
        return countPrice;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setCountyCode(String countyCode) 
    {
        this.countyCode = countyCode;
    }

    public String getCountyCode() 
    {
        return countyCode;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("payNum", getPayNum())
            .append("phone", getPhone())
            .append("countPrice", getCountPrice())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("image", getImage())
            .append("name", getName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .append("address", getAddress())
            .append("provinceCode", getProvinceCode())
            .append("cityCode", getCityCode())
            .append("countyCode", getCountyCode())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
